import * as types from '../actionTypes/counter';

// counter 的 action creator
export const increment = (payload) => ({
  type: types.INCREMENT,
  payload,
});
// 定义 action creator
export const decrement = (payload) => ({
  type: types.DECREMENT,
  payload,
});

export const random = () => ({
  type: types.RANDOM,
});
